FROM openjdk:11-jre-slim

ARG JAR_FILE=boot-demo.jar

ENV APP_HOME /usr/local/boot

RUN mkdir -p "$APP_HOME" ;

WORKDIR ${APP_HOME}

COPY ${JAR_FILE} app.jar

ENTRYPOINT ["java","-jar","app.jar"]